package route

import (
	"account/controller"

	"github.com/gin-gonic/gin"
)

func SetupAccountRoutes(r *gin.Engine, ac *controller.AccountController) {
	// 新建用户
	r.POST("/account", ac.AddAccount)
	// 年度收入
	r.GET("/income",ac.GetInCome)
	// 年度支出
	r.GET("/outcome",ac.GetOutCome)
	// 分页查询
	// r.GET("/accounts", ac.PaginateAccountsWithCondition)

	// r.GET("/allaccounts",ac.GetAllAccountWithLimit)

	r.GET("/accounts", ac.GetAccounts)


}
